package mjc.egg;
import mjc.compiler.*;
import mjc.gc.*;
import mg.egg.eggc.compiler.libjava.lex.*;
import mg.egg.eggc.compiler.libjava.messages.*;
import mg.egg.eggc.compiler.libjava.*;
import mg.egg.eggc.compiler.libjava.problem.IProblem;
import java.util.Vector;
public class S_INSTS_MJAVA {
LEX_MJAVA scanner;
  S_INSTS_MJAVA() {
    }
  S_INSTS_MJAVA(LEX_MJAVA scanner) {
    this.scanner = scanner;
    this.att_scanner = scanner;
    }
int [] sync= new int[0];
  TDS att_htdsclasses;
  TDS att_htdsvarlocales;
  INFOCLASSE att_hinfoclasse;
  TDS att_tdsvarlocales;
  LEX_MJAVA att_scanner;
  private void regle24() throws Exception {

    //declaration
    //appel
      action_action_24();
  }
  private void regle25() throws Exception {

    //declaration
    S_INST_MJAVA x_3 = new S_INST_MJAVA(scanner) ;
    S_INSTS_MJAVA x_5 = new S_INSTS_MJAVA(scanner) ;
    //appel
      action_auto_inh_25(x_3, x_5);
      action_action_25(x_3, x_5);
    x_3.analyser() ;
      action_apres_25(x_3, x_5);
    x_5.analyser() ;
      action_remontee_25(x_3, x_5);
  }
private void action_action_24() throws Exception {
try {
// instructions
this.att_tdsvarlocales=this.att_htdsvarlocales;
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
private void action_action_25(S_INST_MJAVA x_3, S_INSTS_MJAVA x_5) throws Exception {
try {
// instructions
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
private void action_apres_25(S_INST_MJAVA x_3, S_INSTS_MJAVA x_5) throws Exception {
try {
// instructions
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
private void action_remontee_25(S_INST_MJAVA x_3, S_INSTS_MJAVA x_5) throws Exception {
try {
// instructions
this.att_tdsvarlocales=x_5.att_tdsvarlocales;
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
private void action_auto_inh_25(S_INST_MJAVA x_3, S_INSTS_MJAVA x_5) throws Exception {
try {
// instructions
x_3.att_htdsvarlocales=this.att_htdsvarlocales;
x_5.att_htdsvarlocales=this.att_htdsvarlocales;
x_3.att_htdsclasses=this.att_htdsclasses;
x_5.att_htdsclasses=this.att_htdsclasses;
x_3.att_hinfoclasse=this.att_hinfoclasse;
x_5.att_hinfoclasse=this.att_hinfoclasse;
}catch(RuntimeException e) {		//e.printStackTrace();
       scanner._interrompre(IProblem.Internal, scanner.getBeginLine(), ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,e.getStackTrace());
	}
  }
  public void analyser () throws Exception {
    scanner.lit ( 1 ) ;
    switch ( scanner.fenetre[0].code ) {
      case LEX_MJAVA.token_acf : // 19916
        regle24 () ;
      break ;
      case LEX_MJAVA.token_int : // 19927
        regle25 () ;
      break ;
      case LEX_MJAVA.token_bool : // 19928
        regle25 () ;
      break ;
      case LEX_MJAVA.token_void : // 19926
        regle25 () ;
      break ;
      case LEX_MJAVA.token_ident : // 19955
        regle25 () ;
      break ;
      case LEX_MJAVA.token_entier : // 19954
        regle25 () ;
      break ;
      case LEX_MJAVA.token_vrai : // 19950
        regle25 () ;
      break ;
      case LEX_MJAVA.token_faux : // 19951
        regle25 () ;
      break ;
      case LEX_MJAVA.token_plus : // 19942
        regle25 () ;
      break ;
      case LEX_MJAVA.token_moins : // 19943
        regle25 () ;
      break ;
      case LEX_MJAVA.token_non : // 19949
        regle25 () ;
      break ;
      case LEX_MJAVA.token_null : // 19935
        regle25 () ;
      break ;
      case LEX_MJAVA.token_paro : // 19913
        regle25 () ;
      break ;
      case LEX_MJAVA.token_nouveau : // 19932
        regle25 () ;
      break ;
      case LEX_MJAVA.token_this : // 19952
        regle25 () ;
      break ;
      case LEX_MJAVA.token_super : // 19953
        regle25 () ;
      break ;
      case LEX_MJAVA.token_aco : // 19915
        regle25 () ;
      break ;
      case LEX_MJAVA.token_si : // 19923
        regle25 () ;
      break ;
      case LEX_MJAVA.token_retour : // 19931
        regle25 () ;
      break ;
      case LEX_MJAVA.token_tantque : // 19925
        regle25 () ;
      break ;
      default :
               scanner._interrompre(IProblem.Syntax, scanner.getBeginLine(), IMJAVAMessages.id_MJAVA_unexpected_token,MJAVAMessages.MJAVA_unexpected_token,new String[]{scanner.fenetre[0].getNom()});
    }
  }
  }
